<template>
<view class="page-adjust-detail">
	<view>
		<adjustItem :dataDetail="detail"></adjustItem>
	</view>
	<view class="notice">
		<view class="link" @click="copyLink">
			原链接(点击即可复制链接)：{{detail.originalUrl}}
		</view>
		<view class="contact">
			联系方式：{{detail.phone || '无'}}
		</view>
	</view>
</view>
</template>

<script>
	import adjustItem from '@/schoolMsg/components/adjust-school.vue'
	
	import {prescriptionInfo} from'@/utils/api.js'
	export default {
		components: {
			adjustItem
		},
		onLoad(options) {
			// this.params.adjustInfoId = options.adjustInfoId
			this.params.adjustInfoId = '113027'
			// console.log('this.adjustInfoId',this.adjustInfoId)
			this.prescriptionInfo()
		},
		data() {
			return {
				link:'www.baidu.com',
			
				params:{
					adjustInfoId:''
				},
				detail:{}
			}
		},
		methods: {
			copyLink() {
				uni.setClipboardData({
					data: this.link,
					success: () => {
						uni.showToast({
							title: "复制成功",
				
							duration: 1500,
						});
					},
				});
			},
			async prescriptionInfo() {
				let res = await prescriptionInfo(this.params)
				if(res.code == 200) {
					this.detail = res.rows[0]
					console.log('this.detail',this.detail)
				}
			}
		}
	}
</script>

<style scoped lang="scss">
.page-adjust-detail {
	padding: 20rpx;
	.notice {
		font-size: 28rpx;
	}
}

</style>
